package cn.stylefeng.guns.modular.fruits.mapper;

import cn.stylefeng.guns.modular.fruits.entity.FruitsBasicGoodsInstall;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsBasicGoodsInstallParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsBasicGoodsInstallResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品设置 Mapper 接口
 */
public interface FruitsBasicGoodsInstallMapper extends BaseMapper<FruitsBasicGoodsInstall> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<FruitsBasicGoodsInstallResult> customList(@Param("paramCondition") FruitsBasicGoodsInstallParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") FruitsBasicGoodsInstallParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    Page<FruitsBasicGoodsInstallResult> customPageList(@Param("page") Page page, @Param("paramCondition") FruitsBasicGoodsInstallParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-06-14
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") FruitsBasicGoodsInstallParam paramCondition);

	FruitsBasicGoodsInstallResult findBySpec(@Param("paramCondition")FruitsBasicGoodsInstallParam param);

	List<FruitsBasicGoodsInstallResult> findListBySpec(@Param("paramCondition")FruitsBasicGoodsInstallParam param,@Param("operateId")Long operateId);

}
